﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KP_CommonLibrary.KP_CommonControls;
using KP_CommonLibrary.KP_CoreUI;

namespace KEEPER_BRR_13dotNET.Presentation.Controls
{
    public partial class TomTatHKD : KP_UserControl, IContainerDataSource

    {
        public TomTatHKD()
        {
            InitializeComponent();
            if (!DesignMode)
                BackColor = Color.Transparent;
        }

        public void HienThiThongTinHKD(DataRowView view)
        {
            bindingSource1.DataSource = view;
            kP_BindingController1.BindingControl();
        }
        private void TomTatHKD_Load(object sender, EventArgs e)
        {
            
        }

        public void SetDataSource(object data,DataTable tblPhuongXa)
        {
            cbPhuongXa.DataSource = new DataView(tblPhuongXa);
            bindingSource1.DataSource = data;
            kP_BindingController1.BindingControl();
        }
        #region IContainerDataSource Members

        public object GetSource(int index)
        {
            return bindingSource1;
        }

        #endregion
    }
}
